package com.spring.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

//注册Controller
@Controller
public class TestController {

    @RequestMapping("/test.api")
    public Object test(String name, HttpServletRequest request, HttpServletResponse response){//不传这几个参数还跑不起来
        System.out.println("test");
        return null;
    }
}
